/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define RF_RST_Pin GPIO_PIN_3
#define RF_RST_GPIO_Port GPIOE
#define RF_NSS_Pin GPIO_PIN_4
#define RF_NSS_GPIO_Port GPIOE
#define UVC_DAC_O1_Pin GPIO_PIN_4
#define UVC_DAC_O1_GPIO_Port GPIOA
#define UVC_PWR_Pin GPIO_PIN_5
#define UVC_PWR_GPIO_Port GPIOA
#define VALVE2_CTRL_Pin GPIO_PIN_8
#define VALVE2_CTRL_GPIO_Port GPIOE
#define BEEP_Pin GPIO_PIN_10
#define BEEP_GPIO_Port GPIOE
#define LED_Pin GPIO_PIN_11
#define LED_GPIO_Port GPIOE
#define VALVE1_EN_Pin GPIO_PIN_12
#define VALVE1_EN_GPIO_Port GPIOE
#define VALVE1_CTRL_Pin GPIO_PIN_13
#define VALVE1_CTRL_GPIO_Port GPIOE
#define V1_OPENED_Pin GPIO_PIN_14
#define V1_OPENED_GPIO_Port GPIOE
#define V1_CLOSED_Pin GPIO_PIN_15
#define V1_CLOSED_GPIO_Port GPIOE
#define UART3_485_TX_Pin GPIO_PIN_10
#define UART3_485_TX_GPIO_Port GPIOB
#define UART3_485_RX_Pin GPIO_PIN_11
#define UART3_485_RX_GPIO_Port GPIOB
#define UART3_485_TE_Pin GPIO_PIN_12
#define UART3_485_TE_GPIO_Port GPIOB
#define FT_PULSE_Pin GPIO_PIN_13
#define FT_PULSE_GPIO_Port GPIOB
#define FT_PULSE_EXTI_IRQn EXTI15_10_IRQn
#define DOOR_OPEN_Pin GPIO_PIN_10
#define DOOR_OPEN_GPIO_Port GPIOD
#define BTN_OPEN_Pin GPIO_PIN_11
#define BTN_OPEN_GPIO_Port GPIOD
#define BTN_CLOSE_Pin GPIO_PIN_12
#define BTN_CLOSE_GPIO_Port GPIOD
#define VIB_CHECK_Pin GPIO_PIN_13
#define VIB_CHECK_GPIO_Port GPIOD
#define DS18B20_Pin GPIO_PIN_14
#define DS18B20_GPIO_Port GPIOD
#define UART6_4G_TX_Pin GPIO_PIN_6
#define UART6_4G_TX_GPIO_Port GPIOC
#define UART6_4G_RX_Pin GPIO_PIN_7
#define UART6_4G_RX_GPIO_Port GPIOC
#define PWR_4G_Pin GPIO_PIN_8
#define PWR_4G_GPIO_Port GPIOC
#define IIC_SDA_EE_Pin GPIO_PIN_9
#define IIC_SDA_EE_GPIO_Port GPIOC
#define IIC_SCL_EE_Pin GPIO_PIN_8
#define IIC_SCL_EE_GPIO_Port GPIOA
#define DEBUG_UART1_TX_Pin GPIO_PIN_9
#define DEBUG_UART1_TX_GPIO_Port GPIOA
#define DEBUG_UART1_RX_Pin GPIO_PIN_10
#define DEBUG_UART1_RX_GPIO_Port GPIOA
#define UART5_HMI_TX_Pin GPIO_PIN_12
#define UART5_HMI_TX_GPIO_Port GPIOC
#define UART5_HMI_RX_Pin GPIO_PIN_2
#define UART5_HMI_RX_GPIO_Port GPIOD
#define SPI3_SCK_FLASH_Pin GPIO_PIN_3
#define SPI3_SCK_FLASH_GPIO_Port GPIOB
#define SPI3_MISO_FLASH_Pin GPIO_PIN_4
#define SPI3_MISO_FLASH_GPIO_Port GPIOB
#define SPI3_MOSI_FLASH_Pin GPIO_PIN_5
#define SPI3_MOSI_FLASH_GPIO_Port GPIOB
#define SPI3_NSS_FLASH_Pin GPIO_PIN_6
#define SPI3_NSS_FLASH_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
